package com.service;

import java.util.List;
import java.util.Map;

import com.domain.Bls;
import com.domain.Cj;
import com.domain.Cs;
import com.domain.Hyzk;
import com.domain.Jb;
import com.domain.Jzlx;
import com.domain.Pomr;
import com.domain.Rllx;
import com.domain.Rqlx;
import com.domain.Ss;
import com.domain.Sx;
import com.domain.UserBls;
import com.domain.UserCj;
import com.domain.UserCs;
import com.domain.UserRllx;
import com.domain.UserYs;
import com.domain.UserYwgms;
import com.domain.Whcd;
import com.domain.Ws;
import com.domain.Xx;
import com.domain.Ys;
import com.domain.Ywgms;
import com.domain.Zjlx;
import com.domain.Zw;
import com.utils.Ret;

public interface PomrService {
	public List<Pomr> getPomr(Map params);
	
	public int getCount(Map params);
	
	public Pomr getPomrByUid(int uid);
	
	public  Map<String,Object> getPomrByUid2(int uid);
	
	public Pomr getPomrByJkdah(int jkdah);
	
	public int  getUidByJkdah(int jkdah);
	
	public Map<String,Object> getPomrMapInfo(int uid);
	
	public Map<String,List<Object>> getPomraCascade(int uid);
	
	public Map<String,List<Map<String,Object>>> getPomrCascadeSJ(int uid);
	
	public Map<String,List<Object>> getDm();
	
	public List<Zjlx> getDmZjlx();
	public List<Hyzk> getDmHyzk();
	public List<Zw> getDmZw();
	public List<Whcd> getDmWhcd();
	public List<Xx> getDmXx();
	public List<Rqlx> getDmRqlx();
	public List<Jzlx> getDmJzlx();
	
	public void updatePomr(Pomr pomr);
	public int getYwgmsIdByMc(String mc);
	public void deleteUserYwgms(int uid);
	public void addUserYwgms(UserYwgms userywgms);
	
	public int getBlsIdByMc(String mc);
	public void deleteUserBls(int uid);
	public void addUserBls(UserBls userbls);
	
	public int getCjIdByMc(String mc);
	public void deleteUserCj(int uid);
	public void addUserCj(UserCj usercj);
	
	public int getRllxIdByMc(String mc);
	public void deleteUserRllx(int uid);
	public void addUserRllx(UserRllx userrllx);
	
	public int getCsIdByMc(String mc);
	public void deleteUserCs(int uid);
	public void addUserCs(UserCs usercs);
	
	public int getYsIdByMc(String mc);
	public void deleteUserYs(int uid);
	public void addUserYs(UserYs userys);

	/*修改密码*/
	public Ret doChangePwd(int ucode,String oldpwd,String newpwd,String newpwd2) throws Exception;

	List<Ywgms> getDmYwgms();

	List<Bls> getDmBls();

	List<Cj> getDmCj();

	List<Rllx> getDmRllx();

	List<Cs> getDmCs();

	List<Ys> getDmYs();

	List<Jb> getDmJb();

	public List<Ss> getDmSs();
	public List<Ws> getDmWs();
	public List<Sx> getDmSx();

	public int getNewJkdah(int ocode);

	void addPomr(Pomr pomr);

	public int getUidByUcode(int ucode);

	
}

